﻿using AppKit;
using Foundation;

namespace SounCard.Mac
{
    [Register("AppDelegate")]
    public class AppDelegate : NSApplicationDelegate
    {
        //NSWindow _window;

        public AppDelegate()
        {
            //var style = NSWindowStyle.Closable | NSWindowStyle.Resizable | NSWindowStyle.Titled;

            //var rect = new CoreGraphics.CGRect(200, 1000, 1024, 768);
            //_window = new NSWindow(rect, style, bufferingType: NSBackingStore.Buffered,deferCreation: false)
            //{
            //    Title = "Xamarin.Forms on Mac!",
            //    TitleVisibility = NSWindowTitleVisibility.Hidden
            //};
        }

        //public override NSWindow MainWindow
        //{
        //    get { return _window; }
        //}

        public override void DidFinishLaunching(NSNotification notification)
        {
            // Insert code here to initialize your application
            //Forms.Init();
        }

        public override void WillTerminate(NSNotification notification)
        {
            // Insert code here to tear down your application
        }
    }
}
